﻿using System.Windows.Controls;
using ZhlTextMod.ViewModels;

namespace ZhlTextMod.Views
{
    /// <summary>
    /// Interaction logic for TextWindow
    /// </summary>
    public partial class TextWindow : UserControl
    {
        private TextWindowViewModel viewModel;

        public TextWindow()
        {
            InitializeComponent();
            viewModel = this.DataContext as TextWindowViewModel;
            System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
            TextEditor.Encoding = System.Text.Encoding.GetEncoding("GB2312");
        }
    }
}